<h3 class="title">
	&nbsp;首页 &gt; <a href="?c=store">餐厅管理</a> &gt; 列表
    <input type="button" style="float:right" onclick="location.href='<?=Base::adminUrl('store', 'create');?>'" class="btn_c" value="添加餐厅" />
</h3>

<div class="tags">
  <div id="tagscontent">
    <div id="con_one_1">
	<form name="searchform" id="searchform" action="" method="get">
			<input type="hidden" name="dosubmit" value="yes" />
    		<input type="hidden" name="c" value="store" />
    		<input type="hidden" name="a" value="index" />
    		区域 <select id="zone_id" name="zone_id" class="ssel" sel="<?=$zone_id;?>">
                <option value="0" selected>请选择...</option>
              </select>
            板块 <select id="subzone_id" name="subzone_id" class="ssel" sel="<?=$subzone_id;?>">
                <option value="0" selected>请选择...</option>
              </select>
    		&nbsp;
    		<input type="text" name="name" value="<?=h($name);?>" />

             <input type="submit" value="搜索" class="button"/>
	</form>
      <div class="table_td">
        <form name="listform" id="listform" action="<?=Base::adminUrl('store', 'batch');?>" method="post">
          <table border="0" cellspacing="2" cellpadding="4" class="formtable" name="table" id="table" width="100%" >
            <thead>
              <tr>
                <th><input title="点击可全选本页的所有项目"  onclick="CheckAll(this.form)" type="checkbox" name="chkall" class="checkbox" />
                </th>
                <th>排序</th>
                <th>编号</th>
				<th>餐厅名称</th>
                <th>区域/板块</th>
                <th>电话</th>
                <th>餐品数量</th>
                <th>最后更新</th>
                <th>审核</th>
                <th align="center">操作</th>
              </tr>
            </thead>
            <?php
				foreach($data as $item){
			?>
            <tbody>
              <tr>
                <td align="center"><input onClick="c_chang(this)" type="checkbox" value="<?=$item['res_id'];?>" name="select[]" class="checkbox" /></td>
                <td align="center"><input type="text" name="listorder[<?=$item['res_id'];?>]" id="listorder[<?=$item['res_id'];?>]" value="<?=$item['ordnum'];?>"  size=3/></td>
                <td align="center"><?=$item['res_id'];?></td>
                <td align="left" style="padding-left:10px;"><?=h($item['name']);?></td>
                <td align="center">
                	  <a href="<?=Base::adminUrl('store', 'index', array('zone_id'=>$item['zone_id']));?>"><?=h($zone->getZoneById($item['zone_id'])->name);?></a>
                	/ <a href="<?=Base::adminUrl('store', 'index', array('zone_id'=>$item['zone_id'], 'subzone_id'=>$item['subzone_id']));?>"><?=h($zone->getZoneById($item['subzone_id'])->name);?></a></td>
                <td align="center"><?=$item['telphone'];?></td>
                <td align="center"><?=intval($item['read']);?></td>
                <td align="center"><?=$item['update_dt'];?></td>
                <td align="center"><? if($item['status']){ ?><font color="Green">√</font><? }else{ ?><font color="Red">×</font><? } ?></td>
                <td align="center">
                	  <a href="<?=Base::adminUrl('dish','index', array('res_id'=>$item['res_id']));?>" title="餐品列表">餐品列表</a>
                	| <a href="<?=Base::adminUrl('dish','category', array('res_id'=>$item['res_id']));?>" title="分类">分类</a>
                	| <a href="<?=Base::adminUrl('store','modify', array('res_id'=>$item['res_id']));?>" title="编辑">编辑</a></td>
              </tr>
              <?php
				}
			  ?>
            </tbody>
          </table>

          <div class="blank10"></div>
          <input type="hidden" name="action" id="action" value="">
          <input type="button" value=" 排序 " name="sort" onClick="if(checkSelect(this.form)){$('#action').val('sort'); $('#listform').submit();}" class="button" />
          <input type="button" value=" 审核 " name="enable" onClick="if(checkSelect(this.form) && confirm('确实要审核ID为('+getSelect(this.form)+')的记录吗?')){$('#action').val('enable');$('#listform').submit();}" class="button" />
          <input type="button" value="取消审核" name="disable" onClick="if(checkSelect(this.form) && confirm('确实要取消审核ID为('+getSelect(this.form)+')的记录吗?')){$('#action').val('disable');$('#listform').submit();}" class="button" />
          <!--
          <input type="button" value="删除到回收站" name="delete" onClick="if(getSelect(this.form) && confirm('确实要把ID为('+getSelect(this.form)+')的记录放到回收站吗?')){this.form.action='/index.php?case=table&act=batch&table=archive&admin_dir=admin&site=default&page=1'; this.form.batch.value='deletestate'; this.form.submit();}" class="button"/>
          <input type="button" value="彻底删除" name="delete" onClick="if(getSelect(this.form) && confirm('确实要删除ID为('+getSelect(this.form)+')的记录吗?')){this.form.action='/index.php?case=table&act=batch&table=archive&admin_dir=admin&site=default&page=1'; this.form.batch.value='delete'; this.form.submit();}" class="button" />
          <input type="button" value=" 还原 " name="restore" onClick="if(getSelect(this.form) && confirm('确实要把ID为('+getSelect(this.form)+')的已删除记录还原吗?')){this.form.action='/index.php?case=table&act=batch&table=archive&admin_dir=admin&site=default&page=1'; this.form.batch.value='restore'; this.form.submit();}" class="button" />
          -->
          <div class="blank10"></div>
        </form>
        <div class="page">
	        <?=$pagestring;?>
        </div>
        <div class="clear"></div>
      </div>
    </div>
  </div>
</div>
